Source File
influxdb.go
Belonging Package
github.com/K-Phoen/grabana/target/influxdb
package influxdbimport// Option represents an option that can be used to configure a influxdb query.type Option func(target *InfluxDB)// InfluxDB represents a influxdb query.type InfluxDB struct {Builder *sdk.Target}func ( string, ...Option) *InfluxDB {:= &InfluxDB{Builder: &sdk.Target{Query: ,},}for , := range {()}return}// Ref sets the reference ID for this query.func ( string) Option {return func( *InfluxDB) {.Builder.RefID =}}// Hide the query. Grafana does not send hidden queries to the data source,// but they can still be referenced in alerts.func () Option {return func( *InfluxDB) {.Builder.Hide = true}}
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |